﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using MINERP.BLL.LeaderOperate;

namespace MINERP.LeaderOperate
{
    public partial class FrmPriority : Form
    {
        LeaderTaskBLL _bll = new LeaderTaskBLL();
        public List<int> orderproductIdList;
        public FrmPriority()
        {
            InitializeComponent();
        }

        private void btnok_Click(object sender, EventArgs e)
        {
            try
            {
                _bll.SetPriority(orderproductIdList, Convert.ToInt32(cmbPriority.Text));
                this.Close();
                MessageBox.Show("加急完成！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);

            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmPriority_Load(object sender, EventArgs e)
        {
            cmbPriority.SelectedIndex = 0;
        }
    }
}
